package com.reader.cms.service.magazine;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;
import com.reader.cms.entity.magazine.ReaderMagazineContent;

/**
 * @author gumenghao
 * @@description 服务类
 * @date 2018-10-24
 */
public interface IReaderMagazineContentService extends IService<ReaderMagazineContent> {

    /**
     * @param currentPage 当前页
     * @param size        每页显示条数
     * @param magazineId
     * @function 分页查询
     */
    Page<ReaderMagazineContent> selectListPage(int currentPage, int size, String magazineId, String title);

    boolean addMagazineContent(ReaderMagazineContent readerMagazineContent);

    ReaderMagazineContent selectSingleContent(String id);

    boolean updateMagazineContent(ReaderMagazineContent readerMagazineContent);
}